package com.wind.taobao.api.trade.trade.rest
{
	import com.wind.taobao.api.trade.trade.convert.TradeConvert;
	import com.wind.taobao.api.trade.trade.model.Trade;
	import com.wind.taobao.core.webservice.TaobaoResponse;

	/**
	 * taobao.trade.fullinfo.get Response
	 * @author fxy
	 *
	 */
	public class TradeFullInfoGetResponse extends TaobaoResponse
	{
		public var trade:Trade;

		public function TradeFullInfoGetResponse(response:TaobaoResponse=null)
		{
			super(response);
			initTrade();
		}

		private function initTrade():void
		{
			if (body != null && this.isSuccess)
			{
				if (body["rsp"].hasOwnProperty("trades"))
					trade=TradeConvert.convertTrade(body["rsp"]["trades"][0]);
			}
		}
	}
}